﻿package com.webdesign.service;

import java.util.List;

import com.webdesign.dto.TermSubmitInfoDTO;
import com.webdesign.dto.TitleSubmitInfoDTO;
import com.webdesign.dto.UserHomeworkDTO;
import com.webdesign.dto.UserhomeworkInfoDTO;
import com.webdesign.entity.TbHomework;
import com.webdesign.entity.TbUser;

public interface ITbUserhomeworkService {
	
	/*
	 * 关联每张表格查找出成绩统计信息，并且以excel格式导出
	 */
	public abstract Boolean outputGrade(String termid,String teacherid);
	
	/*
	 * 返回学年统计，作业名，截至时间，已交人数，未交人数
	 */
	public abstract List<TermSubmitInfoDTO> termSum(String termid,String userid);
	/*
	 * 根据termid返回本学年的所有作业
	 */
	//public abstract List<TbHomework> showTitle(String termid);
	/*
	 * 返回题目统计结果
	 */
	public abstract List<TitleSubmitInfoDTO> titleSum(String homeworkid,String termid,String teacherid);
	/*
	 * 返回某学年，某个作业已上交的学生情况，包括题目，作品链接，学号，姓名，分数
	 */
	public abstract List<UserHomeworkDTO> showSubmit(String homeworkid);
	
	/*
	 * 返回某个课题未完成的学生信息
	 */
	public abstract List<TbUser> showUnsubmit(String homeworkid,String termid,String userid);
		/*
	 * (12.14 clover)作业评分
	 */
	public abstract Boolean grade(String userhomeworkid,String score);

	/*
	 * 返回该学生所有的作业情况
	 */
	public abstract List<UserhomeworkInfoDTO> homeworkState(String userid);
	
	
	/*
	 * 返回布尔值，判断学生提交作业是否成功
	 */
	public abstract Boolean submitHomework(String homeworkid,String userid);
		/*
	 * (12.15 clover)根据userhomeworkid[]返回对应的作业信息
	 */
	public abstract List<UserHomeworkDTO> returnUserhomework(String[] userhomeworkid);
	
	/*
	 * (12.16 clover)根据userhomeworkid返回homeworkid
	 */
	public abstract String returnHomeworkid(String userhomeworkid);

}
